$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/useing/public',
            mothed: 'get',
            success: function (res) {
                var str = '';
                $.each(res, function (index, item) {
                    console.log(item);
                    str +=
                        "<div class=small-box>"+
                        "<img src="+item.img+" width=230px>"+
                        "<p>"+item.text+"</p>"+
                        "<p class=number>"+
                            "<span>2032</span>"+
                            "<span>20台</span>"+
                        "</p>"+
                        "<p>"+
                            "<span class=time>"+item.apply+"</span>"+
                            "<span>申请</span>"+
                        "</p>"+
                        "<p class=num>"+
                            "报告数量：8"+
                        "</p>"+
                    "</div>"
                })
                $('.box').html(str);
            }
        })
    }
})